740 INPUT "Enter Nominal Interest Rate: ";I:LOCATE 10,63:PRINT USING I$;I
750 PRINT:INPUT "Enter Number of Deposits Per Year: ";N:LOCATE 12,63:PRINT N
780 PRINT:INPUT "Enter the Number of Years: ";Y:LOCATE 14,63:PRINT Y
790 I=I/N/100
800 R=T*I/((I+1)^(N*Y)-1)
802 R$=STR$(R):T$=STR$(T)
804 L1=LEN(R$):L2=LEN(T$)
810 PRINT:PRINT:PRINT"Regular deposits of: ";:COLOR 10,8:LOCATE 17,(22-(13-L1)):PRINT USING V$;R;:COLOR 7:PRINT" will yield:";:PRINT USING V$;T:PRINT" in: ";Y;" years"
820 LOCATE 25,1:INPUT "Another run (Y or N): ";ANS$
830 IF LEFT$(ANS$,1)="Y" THEN 690 ELSE 40
880 GOSUB 4500:PRINT" Regular Wuthdrawals from an Investment":PRINT D$:LOCATE 23,1:PRINT D$;
910 LOCATE 8,1:INPUT "Enter the amount of your initial investment: ";P:LOCATE 8,63:PRINT USING V$;P
920 INPUT "Enter nominal interest rate: ";I:LOCATE 10,63:PRINT I
940 PRINT:INPUT "Enter the number of withdrawals each year: ";N:LOCATE 12,63:PRINT N
950 PRINT:INPUT "Enter the number of years: ";Y:LOCATE 14,63:PRINT Y
970 I=I/N/100
980 R=P*(I/((I+1)^(N*Y)-1)+I)
990 LOCATE 18,1:PRINT"You may withdraw: ";:COLOR 15:PRINT USING V$;R;:COLOR 7:PRINT" from your account: ";N:PRINT"times per year for : ";Y;" years without reducing your initial investment"
1070 LOCATE 24,1:INPUT "Do you want another calculation (Y or N): ";ANS$
1080 IF ANS$="Y" THEN 880 ELSE 40
1100 GOSUB 4500:PRINT" INVESTMENT REQUIRED TO PROVIDE FUTURE VALUE":GOSUB 4510
1110 LOCATE 8,1:INPUT "Enter amount you wish to end up with: ";T:LOCATE 8,63:PRINT USING V$;T
1120 INPUT "Enter the number of compounding periods each year: ";N:LOCATE 10,63:PRINT N
1130 PRINT:INPUT "Enter the number of years for this investment: ";Y:LOCATE 12,63:PRINT Y
1140 PRINT:INPUT "Enter the nominal interest rate: ";I:LOCATE 14,63:PRINT I
1220 I1=I
1230 I=I/N/100
1240 P=T/(I+1)^(N*Y)
1250 LOCATE 18,1:PRINT"You must invest: ";:COLOR 15:PRINT USING V$;P;:COLOR 7:PRINT" to yield: ";:PRINT USING V$;T
1260 LOCATE 24,1:INPUT "Do you want to make another calculation: ";ANS$